<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>管理酒店信息</title>
	
    <meta http-equiv="keywords" content="酒店,酒店预订"/>
    <meta http-equiv="description" content="九天是主要面向大学生提供酒店预订服务，价格低廉，品质优越"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <%List list = com.jiutian.db.util.HibernateUtil.excute("select hotelid,hotelname from hotelinfo"); %>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link href="http://www.ijiutian.com/css/my.css" rel="stylesheet"/>
<link href="http://www.ijiutian.com/css/jquery-ui-1.8.13.custom.css" rel="stylesheet"/>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-ui-i18n.min.js"></script>
<script>
</script>
<style>
		table{border: blue solid;}
		td{border:thin blue solid;}
	</style>
  </head>
  
  <body>
	<jsp:include page="../bar.jsp" />
	<div id="hotels_i">
	<p><a href="/hotel/admin/addHotel.jsp">增加酒店</a></p>
	<h1>修改酒店信息</h1>
	<table>
	<tr><td>酒店编号</td><td>酒店名称</td></tr>
	<%for(int i=0;list!=null&&i<list.size();++i){
	    Object[] hotel=(Object[])list.get(i);
	%>
	<tr><td><a href="/hotel/admin/updateHotel.jsp?hotelid=<%=hotel[0] %>"><%=hotel[0] %></a></td><td><a href="/hotel/admin/updateHotel.jsp?hotelid=<%=hotel[0] %>"><%=hotel[1] %></a></td></tr>
	<%} %>
	</table>
	</div>
	<jsp:include page="/hotel/footer.jsp" />
  </body>
</html>